package util.listComparator;

import java.util.Comparator;

import entity.Home;

/**
 * Created by liuxiaobin on 2016/10/11.
 *根据Oraer的值来从小到大来排序
 */
public class HomeBoxTap implements Comparator<Home.ComboBoxTapBarBean>{

    @Override public int compare(Home.ComboBoxTapBarBean lhs, Home.ComboBoxTapBarBean rhs) {
        if(lhs.getOrder()<rhs.getOrder()){
            return -1;
        }else {
            return 1;
        }
    }
}
